#ifndef TIMER_H_
#define TIMER_H_

#include "time.h"
#include <psptypes.h>
#include <pspmoduleinfo.h>
#include <pspthreadman.h>
#include <pspkernel.h>
#include <pspgu.h>
#include <psprtc.h>

class Timer {

protected:
	time_t TimeNow_;
	time_t TimeStart_;
	bool timerStarted_;
	u32 res; // resolution
	u64 now; // the ticks at current point
	u64 previous; // the ticks at the previous point
	float second;
	float difference;

public:
	Timer(float);
	void startTimer();
	void stopTimer();
	void resetTimer();
	double getTimer();

};

#endif
